<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title><?php echo $titleData?></title>
		<!--描述和摘要-->
		<meta name="Description" content=""/>
		<meta name="Keywords" content=""/>
		<!--载入公共模板-->
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="<?php echo __ROOT__?>/public/home/org/bootstrap-3.3.5-dist/css/bootstrap.min.css" />
		<script src="<?php echo __ROOT__?>/public/home/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?php echo __ROOT__?>/public/home/org/bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="<?php echo __ROOT__?>/public/home/css/index.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo __ROOT__?>/public/home/css/backTop.css"/>
	</head>
	<body>
		<header>
			<div class="container">
				<div class="row">
					<div class="col-sm-12">
						<h1><?php echo C('webset.webname')?></h1>
					</div>
				</div>
			</div>
		</header>
		<nav role="navigation" class="navbar navbar-default">
			<div class="container">
				<div class="row">
					<div class="col-sm-12" >
					
						<div class="navbar-header">
							
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
							
								<span class="sr-only">切换导航</span>
								
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
							</button>
						</div>
						
						
						<div class="collapse navbar-collapse" id="example-navbar-collapse">
							<ul class="_menu" >
								<li <?php if(CONTROLLER==Entry){?>
                 class="_active" 
               <?php }?> ><a href="<?php echo __ROOT__?>/index.html">首页</a></li>
								<?php foreach ((array)$topCate as $k=>$v){?>
								<li <?php if(Q('get.cid')==$v['cid'] ){?>
                class="_active" 
               <?php }?>  ><a href=""><?php echo $v['cname']?></a></li> 
								<?php }?>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</nav>
		<section>
			<div class="container">
				<div class="row">
					<!--标签规定文档的主要内容main-->
					<main class="col-md-8">
							<!--绑定一个子模板叫content-->
						<!--name必须和子模板版一致-->
						<!--blade_content-->
					</main>
						<aside class="col-md-4 hidden-sm hidden-xs">
						<div class="_widget">
							<h4>关于自己</h4>
							<div class="_info">
								<p>后盾网人人做后盾...</p>
								<p>
									<i class="glyphicon glyphicon-volume-down"></i>
									目前就职于
									<a href="http://www.houdunwang.com" target="_blank">北京后盾网</a>
								</p>
							</div>
						</div>
						<div class="_widget">
							<h4>分类列表</h4>
							<div>
								<?php foreach ((array)$rightcate as $k=>$v){?>
								<a href="<?php echo U('listpage/index',array('cid'=>$v['cid']))?>"><?php echo $v['cname']?>(<?php echo $v['total']?>)</a>
								<?php }?>
							</div>
						</div>
						<div class="_widget">
							<h4>标签云</h4>
							<div class="_tag">
								<?php foreach ((array)$rightTag as $k=>$v){?>
								<a href="<?php echo U('listpage/index',array('tid'=>$v['tid']))?>"><?php echo $v['tname']?></a>
								<?php }?>
							</div>
						</div>
						
					</aside>
				</div>
			</div>
		</section>
			<footer class="hidden-xs">
			<div class="container">
				<div class="row">
					<div class="col-sm-4">
						<h4 class="_title">最新文章</h4>
						<?php foreach ((array)$newarc as $k=>$v){?>
						<div id="" class="_single">
							<p><a href=""><?php echo $v['title']?></a></p>
							<time><?php echo date('Y-m-d H:i:s',$v['sendtime'])?></time>
						</div>
						<?php }?>
					</div>
					<div class="col-sm-4 footer_tag">
						<div id="">
							<h4 class="_title">标签云</h4>
							<?php foreach ((array)$rightTag as $k=>$v){?>
							<a href=""><?php echo $v['tname']?></a>
						<?php }?>
							
						</div>
					</div>
					<div class="col-sm-4">
						<h4 class="_title">友情链接</h4>
						
						<div id="" class="_single">
							<?php foreach ((array)$dowLink as $k=>$v){?>
							<p><a href="$v['url']" target="_blank"><?php echo $v['lname']?></a></p>
					    <?php }?>
						</div>
						
					</div>
				</div>
			</div>
		</footer>
		<div class="footer_bottom">
			<div class="container">
				<div class="row">
					<div class="col-sm-12">
						<a href="">网站名称</a>
						 | 
						<a href="">版权信息</a>
						 |
						<a href="">admin@163.com</a>
					</div>
				</div>
			</div>
		</div>
		<!--返回顶部自己写的插件-->
		<script src="<?php echo __ROOT__?>/public/home/js/backTop.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				//插件使用
				$('.back_top').backTop({right:30});
			})
		</script>
		<div class="back_top hidden-xs hidden-md">
			<i class="glyphicon glyphicon-menu-up"></i>
		</div>
	</body>
</html>